<form action="<?= $this->element->getAction() ?>" method="<?= $this->element->getMethod() ?>">

    <? foreach ($this->element->getElements() as $element): ?>
    <? if ($element->getType() != 'Zend_Form_Element_Submit') {
        echo $element->getLabel();
    }?>
    <?= $element ?>
    <? $messages = $element->getMessages(); ?>
    <? if (count($messages)): ?>
        <div class="notification error png_bg">
                <? foreach ($messages as $message): ?>
                <div><?= $message ?></div>
                <? endforeach; ?>
        </div>
        <? endif; ?>
    <br/>
    <? endforeach; ?>

</form>
